package com.gemini.main.protobuf;

import java.io.IOException;

public class GenerateProtobuf {

    public static void main(String[] args) {
        String protoFile = "dpm_data_old.proto";//
        String strCmd = "D:\\DevSoft\\protobuf-2.6.1\\src\\protoc.exe --java_out=./src/main/java   ./proto/"+ protoFile;
        try {
            Runtime.getRuntime().exec(strCmd);
        } catch (IOException e) {
            e.printStackTrace();
        }//通过执行cmd命令调用protoc.exe程序
    }
}
